package com.jinx.controller;

import com.jinx.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jixia
 * @date 2021/10/28 14:19
 * @description
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private AsyncService asyncService;

    @GetMapping("/async")
    public void async() {
        asyncService.executeAsync();
    }

    public static void main(String[] args) {

    }
}
